
function appendCity1()
{
	$('#city').empty();
	$('#contry').empty();
	$('#city').append('<select id="s_city" name="s_city" class="am-inline"'
							+ 'style="width: 20%" onclick="changeplace1(this)"></select>&nbsp;&nbsp;');
}
function appendContry1()
{
	$('#contry').empty();
	$('#contry').append(
					'<select id="s_county" name="s_county" class="am-inline"'
							+ 'style="width: 20%" onclick="changeplace1(this)" required></select>');
}

function changeplace1(select) {

	if (select.id == 's_province') {
		 appendCity1();
		getPlaceList(domain + '/getCities.do', 's_city', {
			'Province' : $('#s_province').val()
		},'');

	} else if (select.id == 's_city') {
		appendContry1();
		getPlaceList(domain + '/getCountries.do', 's_county', {
			'City' : $('#s_city').val()
		}, '');
	}
}
function placeInit1() {
	var reg=/[0-9]{6}/;
	if(!reg.test(curruntCity))
		curruntCity='510100';

		else 
		{
		getPlaceList(domain + '/getProvince.do', 's_province', {},curruntCity.substring(0,2)+"0000" );
	   
		appendCity1();
		getPlaceList(domain + '/getCities.do', 's_city', {'Province':curruntCity.substring(0,2)+"0000"},curruntCity.substring(0,4)+"00" );
		appendContry1();
		getPlaceList(domain + '/getCountries.do', 's_county',{'City':curruntCity.substring(0,4)+"00"},'' );
		}
	
}